<?php echo $this->render($this->includeDir . '/toolbar.php');?>
<?php 
	$config = new Zendvn_Controller_Config(array('module'=>$this->arrParam['module'],'fileConfig'=>'product-category.ini'));
	
	$image 				= $this->Item['image'];	
	if(!empty($image)){
		$imageConfig 	= $config->getConfig('category');
		$imageUrl		= $imageConfig['thumbUrl'] . '/' . $this->Item['image'];
		$image 			= $this->cmsImage('image',$imageUrl,array('width'=>'75px'));
	}
	
	$bgImage 				= $this->Item['bg_image'];	
	if(!empty($image)){
		$imageConfig 	= $config->getConfig('category');
		$bgImageUrl		= $imageConfig['uploadBgUrl'] . '/' . $this->Item['bg_image'];
		$bgImage 		= $this->cmsImage('bg_image', $bgImageUrl,array('width'=>'75px'));
	}
	$name 				= Zendvn_Filter_Filter::filterContent($this->Item['name'],'filter');
	$bg_color			= '<span style="display: inline-block; width: 40px; height: 20px; background: ' . $this->Item['bg_color'] . '"></span>';
	$parents 			= Zendvn_Filter_Filter::filterContent($this->Item['parents'],'filter');
	$html_descript		= Zendvn_Filter_Filter::filterContent($this->Item['html_descript'],'filter');
	$html_keyword		= Zendvn_Filter_Filter::filterContent($this->Item['html_keyword'],'filter');
	$content			= Zendvn_Filter_Filter::filterContent($this->Item['content'],'filter');
	$created 			= date('d-m-Y H:i:s',strtotime($this->Item['created']));
	$created_by 		= $this->Item['createdBy'];
	$modified 			= $this->Item['modified']?date('d-m-Y H:i:s',strtotime($this->Item['modified'])):'';
	$modified_by 		= $this->Item['modifiedBy'];
	
	$attribs 			= array('icon'=>'inactive.png','iconDir' => "images/small-icons");
	if($this->Item['status'] == 'active')$attribs['icon'] = 'active.png';
	$status 			= '<img src="'. $attribs['iconDir'] .'/'. $attribs['icon'] .'" />';
	$arrRow 			= array(
								array('label'=>$this->translate('Name'),'info'=>$name),
								array('label'=>$this->translate('Picture'),'info'=>$image),
								array('label'=>$this->translate('Background color'),'info'=>$bg_color),
								array('label'=>$this->translate('Background image'),'info'=>$bgImage),
								array('label'=>$this->translate('Category'),'info'=>$parents),
								array('label'=>$this->translate('Content'),'info'=>$content),
								array('label'=>$this->translate('Html description'),'info'=>$html_descript),
								array('label'=>$this->translate('Html keyword'),'info'=>$html_keyword),
								array('label'=>$this->translate('Created'),'info'=>$created),
								array('label'=>$this->translate('Created by'),'info'=>$created_by),
								array('label'=>$this->translate('Modified'),'info'=>$modified),
								array('label'=>$this->translate('Modified by'),'info'=>$modified_by),
								array('label'=>$this->translate('Status'),'info'=>$status),
								); 
?>
<div id="element-box">
	<div class="m">
		<div class="form-table">
			<fieldset class="admin-fieldset">
                <legend class="admin-legend">Form Detail</legend>
            	<table width="100%" border="0">
                	<?php echo $this->partialLoop('row-info.php',$arrRow);?>
                </table>
                <div class="clr"></div>
			</fieldset>
		</div>
		<div class="clr"></div>
	</div>
</div>
